<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>


    <script>
        function Fn(username,pwd,callback) {
             setTimeout(()=>{
                 if(username === '国民党' && pwd === '123456'){
                     callback('登入成功')
                 }else{
                     callback('登入失败')
                 }
             },0)
        }
        Fn('国民党','123456',function (res) {
             console.log('共产党',res);
        })
    </script>
</body>
</html>